/*
 * @Description:
 * @Version: 2.0
 * @Autor: xudongxu
 * @Date: 2020-03-27 14:32:13
 * @LastEditors: xudongxu
 * @LastEditTime: 2020-03-27 15:32:12
 */

#include "application.hpp"
#include <Poco/Util/Application.h>
#include <iostream>

int main(int argc, char **argv) {
  try {
    MyApplication app;
    app.init(argc, argv); //在这里传主函数参数。
    app.run();
  } catch (Poco::Exception &e) {
    Util::Application::instance().logger().error(e.what());
  }
}